package fr.cpe.dp.projet2.model.algo;

import java.awt.Color;

public class RandomAlgorithm extends AbstractAlgorithm {
	private int maxX;
	private int maxY;
	private int maxWidth;
	private int maxHeight;
	
	public RandomAlgorithm() {
		this.maxX = 0;
		this.maxY = 0;
		this.maxWidth = 0;
		this.maxHeight = 0;
	}
	
	@Override
	public Color getColor() {
		return  new Color((int) (Math.random() * 250), (int) (Math.random() * 250), (int) (Math.random() * 250)); 
	}

	@Override
	public int getX() {
		return (int) ((Math.random() * maxX));
	}

	@Override
	public int getY() {
		return (int) ((Math.random() * maxY));
	}

	@Override
	public int getWidth() {
		return (int) ((Math.random() * maxWidth));
	}

	@Override
	public int getHeight() {
		return (int) ((Math.random() * maxHeight));
	}

	@Override
	public int getStartAngle() {
		return 0;
	}

	@Override
	public int getArcAngle() {
		return 0;
	}

	@Override
	public int getArcWidth() {
		return 0;
	}

	@Override
	public int getArcHeight() {
		return 0;
	}

	@Override
	public void setMaxWidth(int width) {
		this.maxWidth = width;
	}

	@Override
	public void setMaxHeight(int height) {
		this.maxHeight = height;
	}

	@Override
	public void setMaxX(int x) {
		this.maxX = x;
	}

	@Override
	public void setMaxY(int y) {
		this.maxY = y;
	}
}
